package com.ruoyi.yuyuan.Service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.yuyuan.DTO.BlogAgreementDTO;
import com.ruoyi.yuyuan.DTO.Result;
import com.ruoyi.yuyuan.Entity.BlogAgreement;

import java.io.IOException;

/**
 * @Author: kestrel
 * @Version:1.0
 * @Date: 2024/5/29
 */
public interface IAgreementBlogService extends IService<BlogAgreement> {
    Result publishAgreement(BlogAgreementDTO blogAgreementDTO, Short blogType) throws InterruptedException;

    Result updateAgreement(BlogAgreementDTO blogAgreementDTO, Long blogId) throws InterruptedException;

    Result getSingleAgreement(Short blogType, Long blogId);

    Result getAgreement(Short blogType, Long startId);

    Result getSearchAgreements(String searchKeyWord, Short type, Short blogType) throws IOException;
}
